$(function(){
    // 返回顶部
    $('#totop').click(function(){
        $('body,html').animate({scrollTop:0},500);
    });
    // 字體hover
    $('.wlink').hover(function(){
        $(this).css('color','#00BFFF');
    },function(){
        $(this).css('color','#fff');
    });
    // 爆炸跳转效果
    $('.wlink1').click(function(){
        if(document.body.offsetWidth>=801){
            setTimeout(function(){
                window.location.href = "company.html";
            },300)
        }else{
            window.location.href = "company.html";
        }
    })
    $('.wlink2').click(function(){
        if(document.body.offsetWidth>=801){
            setTimeout(function(){
                window.location.href = "joinus.html";
            },300)
        }else{
            window.location.href = "joinus.html";
        }
    })
    $('.wlink3').click(function(){
        if(document.body.offsetWidth>=801){
            setTimeout(function(){
                window.location.href = "group.html";
            },300)
        }else{
            window.location.href = "group.html";
        }
    })
    $('.wlink4').click(function(){
        if(document.body.offsetWidth>=801){
            setTimeout(function(){
                window.location.href = "project.html";
            },300)
        }else{
            window.location.href = "project.html";
        }
    })
    $('.wlink5').click(function(){
        if(document.body.offsetWidth>=801){
            setTimeout(function(){
                window.location.href = "coop.html";
            },300)
        }else{
            window.location.href = "coop.html";
        }
    })
    $('.wlink6').click(function(){
        if(document.body.offsetWidth>=801){
            setTimeout(function(){
                window.location.href = "active.html";
            },300)
        }else{
            window.location.href = "active.html";
        }
    })
})